TfrxPreview
The component is designed for creation of custom preview windows. procedure AddPage; Adds a blank page to the end of the report. procedure DeletePage; Deletes the current page. procedure Print; Prints a report. procedure LoadFromFile; Displays the file loading dialogue. procedure LoadFromFile(FileName: String ); Loads a file without displaying the dialogue. procedure SaveToFile; Displays the file saving dialogue. procedure SaveToFile(FileName: String ); Saves a file without displaying the dialogue. procedure Edit; Loads the current page for editing to the designer. procedure Export(Filter: TfrxCustomExportFilter); Exports the report using the specified export filter. procedure First; Moves to the first page. procedure Next; Moves to the next page. procedure Prior; Moves to the previous page. procedure Last; Moves to the last page. procedure PageSetupDlg; Displays the page setting dialogue. procedure Find; Displays the text searching dialogue. procedure FindNext; Continues searching the text. procedure Cancel; Aborts a report constructing. procedure Clear; Clears a report. procedure MouseWheelScroll(Delta: Integer); Scrolls the preview window. This method is used for Form.OnMouseWheel event handler. You can use the following properties: property PageCount: Integer readonly; Number of pages in a report. property PageNo: Integer; The current page number (starts from 1). To move to a required page, assign a value to this property. property Tool: TfrxPreviewTool; A selected tool (hand “ptHand” or magnifier “ptZoom”). property Zoom: Extended; The scaling factor. “1” conforms 100% scale. property ZoomMode: TfrxZoomMode; Zoom mode. The following values are available: zmDefault – scale can be set with the help of the “Zoom” property; zmWholePage – the whole page fits; zmPageWidth – the page fits by width; zmManyPages – two pages fit. property OutlineVisible: Boolean; Report tree visibility. property OnPageChanged: TfrxPageChangedEvent; This event is generated when the current page is being changed. |